$.extend($.fn.datagrid.defaults.editors, {
    numberspinner: {
        init: function(container, options){
            var input = $('<input type="text">').appendTo(container);
            return input.numberspinner(options);
        },
        destroy: function(target){
            $(target).numberspinner('destroy');
        },
        getValue: function(target){
            return $(target).numberspinner('getValue');
        },
        setValue: function(target, value){
            $(target).numberspinner('setValue',value);
        },
        resize: function(target, width){
            $(target).numberspinner('resize',width);
        }
    },
	datetimebox: {
		init: function(container, options){
            var input = $('<input class="easyui-datetimebox">').appendTo(container);
            return input.datetimebox({
            	formatter:formatDataTime
            });
        },
        getValue: function(target){
            return $(target).parent().find('input.combo-value').val();
        },
        setValue: function(target, value){
            $(target).datetimebox('setValue',value);
        },
        resize: function(target, width){
        	var input = $(target);
        	if($.boxModel==true)
    		{
        		input.width(width-(input.outerWidth()-input.width()));
    		}
        	else
    		{
        		input.width(width);
    		}
        }
	}
});